/*
 * @Description: 无表格数据显示
 * @Author: Zzt
 * @Date: 2022-11-17 16:51:20
 * @LastEditTime: 2022-12-19 19:48:12
 */
import Charts from './components/Charts';
import Operate from './components/Operate';
import cs from 'classnames';
import { BasicsVisualizationContextProvider } from './contexts/BasicsVisualizationContext';

const BasicsVisualizationMain = (props: any) => {
  const { className, type, onChange, segmented, data, quanZongOptions } = props;

  return (
    <>
      <BasicsVisualizationContextProvider>
        <div className={cs('pane-container', className)}>
          <div>
            <Operate
              type={type}
              onChange={onChange}
              segmented={segmented}
              quanZongOptions={quanZongOptions}
            />
          </div>
          <div>
            <Charts data={data} />
          </div>
        </div>
      </BasicsVisualizationContextProvider>
    </>
  );
};
export default BasicsVisualizationMain;
